package com.fqxl.labour.controller;

import com.fqxl.labour.domain.LabourFeedback;
import com.fqxl.labour.service.FeedbackService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Feedback")
@Api(tags = "意见反馈")
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    /**
     * 添加意见反馈
     * @param labourFeedback
     * @return
     */
    @ApiOperation("添加意见反馈")
    @PostMapping("/submit")
    public R submit(@RequestBody LabourFeedback labourFeedback){
        return feedbackService.submit(labourFeedback);
    }


}
